.class public Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field public a:Landroid/widget/TextView;

.field public b:Landroid/widget/ListView;

.field public c:Lcom/waiqin365/lightwork/directory/b/w;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/ImageView;

.field private f:Landroid/widget/RelativeLayout;

.field private g:Lcom/waiqin365/lightwork/directory/b/l;

.field private h:Landroid/os/Handler;

.field private i:Ljava/util/List;

.field private j:Landroid/content/Context;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->j:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;Lcom/waiqin365/lightwork/directory/b/l;)Lcom/waiqin365/lightwork/directory/b/l;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->g:Lcom/waiqin365/lightwork/directory/b/l;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;Ljava/util/List;)Ljava/util/List;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->i:Ljava/util/List;

    return-object p1
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightwork/directory/r;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightwork/directory/r;-><init>(Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->h:Landroid/os/Handler;

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->i:Ljava/util/List;

    return-object v0
.end method

.method private b()V
    .locals 4

    const/4 v3, 0x0

    const v0, 0x7f0c0705

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->e:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0707

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->d:Landroid/widget/TextView;

    const v0, 0x7f0c0708

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->a:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->a:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->d:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/w;->g:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v2, 0x7f080765

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_0
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c06bd

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->b:Landroid/widget/ListView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0c0247

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->f:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    iget-boolean v0, v0, Lcom/waiqin365/lightwork/directory/b/w;->a:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->f:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    const/high16 v1, 0x420c0000    # 35.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    :cond_0
    new-instance v0, Lcom/waiqin365/lightwork/directory/s;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->h:Landroid/os/Handler;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightwork/directory/s;-><init>(Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;Landroid/os/Handler;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/directory/s;->start()V

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->showProgressDialog(Ljava/lang/String;)V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/w;->g:Ljava/lang/String;

    goto :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;)Lcom/waiqin365/lightwork/directory/b/l;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->g:Lcom/waiqin365/lightwork/directory/b/l;

    return-object v0
.end method


# virtual methods
.method protected a(Lcom/waiqin365/lightapp/kehu/share/a/a;)Ljava/util/List;
    .locals 5

    new-instance v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kehu/share/a/a;-><init>()V

    const-string/jumbo v1, "-1"

    iput-object v1, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    if-eqz p1, :cond_0

    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v1

    iget-object v3, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v3, v3, Lcom/waiqin365/lightwork/directory/b/w;->c:Lcom/waiqin365/base/db/offlinedata/q;

    iget-object v4, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    iget-boolean v4, v4, Lcom/waiqin365/lightwork/directory/b/w;->b:Z

    invoke-virtual {v1, p1, v3, v4}, Lcom/waiqin365/base/db/offlinedata/m;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lcom/waiqin365/base/db/offlinedata/q;Z)Ljava/util/ArrayList;

    move-result-object v1

    invoke-interface {v2, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_0
    invoke-static {p0}, Lcom/waiqin365/base/db/offlinedata/m;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/m;

    move-result-object v3

    if-nez p1, :cond_1

    :goto_0
    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    iget-boolean v1, v1, Lcom/waiqin365/lightwork/directory/b/w;->b:Z

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    iget-object v1, v1, Lcom/waiqin365/lightwork/directory/b/w;->c:Lcom/waiqin365/base/db/offlinedata/q;

    :goto_1
    invoke-virtual {v3, v0, v1}, Lcom/waiqin365/base/db/offlinedata/m;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lcom/waiqin365/base/db/offlinedata/q;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-interface {v2, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    const/4 v0, 0x0

    move v1, v0

    :goto_2
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_3

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    const/4 v3, 0x1

    iput-boolean v3, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->e:Z

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iput-object p1, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->a:Lcom/waiqin365/lightapp/kehu/share/a/a;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_2

    :cond_1
    move-object v0, p1

    goto :goto_0

    :cond_2
    sget-object v1, Lcom/waiqin365/base/db/offlinedata/q;->a:Lcom/waiqin365/base/db/offlinedata/q;

    goto :goto_1

    :cond_3
    return-object v2
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0705
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    iput-object p0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->j:Landroid/content/Context;

    const v0, 0x7f03012a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "param"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "param"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/directory/b/w;

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightwork/directory/b/w;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/directory/b/w;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->a()V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;)Ljava/util/List;

    invoke-direct {p0}, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->b()V

    return-void

    :cond_1
    new-instance v0, Lcom/waiqin365/lightwork/directory/b/w;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/directory/b/w;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectSingleModeActivity;->c:Lcom/waiqin365/lightwork/directory/b/w;

    goto :goto_0
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 1

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/directory/b/l;

    invoke-virtual {v0, p3}, Lcom/waiqin365/lightwork/directory/b/l;->b(I)V

    return-void
.end method
